<ion-view title="房型信息">
    <ion-content class="crm-content">
        <ion-refresher
                pulling-text="下拉刷新"
                on-refresh="roomTypes.refresh()">
        </ion-refresher>
        <ul class="list">
            <li class="item item-thumbnail-left item-icon-right" ng-repeat="roomType in roomTypes.data" ui-sref="app.hotel-room-info({roomTypeId:roomType.roomId})">
                <img ng-src="{{roomType.def+'?imageView2/1/w/80'}}" err-src="img/no-img.png" src="img/no-img.png">
                <h2>{{roomType.roomName}}</h2>
                <p style="white-space: pre-line;">{{roomType.description}}</p>
                <i class="icon ion-chevron-right icon-accessory"></i>
            </li>
            <li class='item text-center' ng-if="roomTypes.loaded && roomTypes.data.length==0">
                <p>暂无数据</p>
            </li>
        </ul>
    </ion-content>
</ion-view>